﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ASelect.Service.Contracts
{
    /// <summary>
    /// The LoginResult enumeration contains the possible return
    /// values used when logging in.
    /// </summary>
    [DataContract]
    public enum LoginResult
    {
        /// <summary>
        /// Successful login.
        /// </summary>
        [EnumMember]
        SUCCESSFUL = 1,

        /// <summary>
        /// Unknown username.
        /// </summary>
        [EnumMember]
        USERNAME_ERROR = 2,

        /// <summary>
        /// Wrong password.
        /// </summary>
        [EnumMember]
        PASSWORD_ERROR = 3,

        /// <summary>
        /// Username empty.
        /// </summary>
        [EnumMember]
        USERNAME_EMPTY = 4,

        /// <summary>
        /// Password empty.
        /// </summary>
        [EnumMember]
        PASSWORD_EMPTY = 5
    };
}
